package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.ChatRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChatRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ChatRecord record);

    ChatRecord selectByPrimaryKey(Long id);

    List<ChatRecord> selectAll();

    int updateByPrimaryKey(ChatRecord record);

    /**
     * 查询出两个聊天成员之间的聊天记录
     * 条件:根据聊天表id去查询
     * @return
     */
    List<ChatRecord> selectForList(@Param("chatId") Long chatId);
}